home *** CD-ROM | disk | FTP | other *** search
/ PC User 2002 April / Disc 2 / PCUSER0402D2.iso / software / utils / files / wincron.exe / data1.cab / Sample_Scripts / suspend_8to5.tg < prev    next >
Encoding:
Text File  |  2001-10-20  |  601 b   |  26 lines

  1. ## suspend_8to5.tg
  2. #
  3. {
  4.     # only run from 8:00 AM to 5:00 PM
  5.     -name suspend_8to5.tg
  6.  
  7.     # start now
  8.     -start
  9.  
  10.     # Suspend all processing before 8:00 AM
  11.     # (Start the suspending at 12:00 AM to 8:00 AM)
  12.     -suspend -time 12:00:00 AM
  13.     -resume  -time 8:00:00 AM
  14.  
  15.     # Suspend all processing after 5:00 PM
  16.     # This suspention will run until the 24 hour clock 
  17.     #   rolls-over at 12:00 AM
  18.     -suspend -time 5:00:00 PM
  19.  
  20.     # if it is between 8am and 5pm, do our job.
  21.     # This sample job only prints 'Tick!' on the console
  22.     -action -print Tick!
  23.  
  24.     # do this again in one second
  25.     -action -inc 0 0 0 1
  26. }